package domain;

// Generated 19.Eki.2012 14:01:16 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.CascadeType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * LogServiceCallDataDAO generated by hbm2java
 */
@Entity
@Table(name = "IBTOOLS_LOG_SERVICE_CALL_OUT", schema = "T32556")
public class LogServiceCallOutDAO implements java.io.Serializable {
	
	/***
	 * , cascade = CascadeType.ALL
	 */

	private Long oid;
	private LogServiceCallDAO logServiceCall;
	private String xmlString;
	private int part;

	public LogServiceCallOutDAO() {
	}

	public LogServiceCallOutDAO(LogServiceCallDAO logServiceCall,
			String xmlString, int part) {
		this.logServiceCall = logServiceCall;
		this.xmlString = xmlString;
		this.part = part;
	}

	@SequenceGenerator(name = "generator")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "OID", unique = true, nullable = false, scale = 0)
	public Long getOid() {
		return this.oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	@JoinColumn(name = "LOG_SERVICE_CALL", nullable = false)
	public LogServiceCallDAO getLogServiceCall() {
		return this.logServiceCall;
	}

	public void setLogServiceCall(LogServiceCallDAO logServiceCall) {
		this.logServiceCall = logServiceCall;
	}

	@Column(name = "XML_STRING", nullable = false, length = 1000)
	public String getXmlString() {
		return this.xmlString;
	}

	public void setXmlString(String xmlString) {
		this.xmlString = xmlString;
	}

	@Column(name = "PART", nullable = false, precision = 8, scale = 0)
	public int getPart() {
		return this.part;
	}

	public void setPart(int part) {
		this.part = part;
	}

}
